public class Date {
    public static void classify(int day,int month,int year){
        if(month == 1 || month == 2)
        {
            year--;
            month += 12;
        }
        Bill.W = (day + 2 * month + 3 * (month + 1)/5 + year + year/4 - year/100 + year/400 + 1) % 7;//0是周日，其他对应
        if(month > 12)
        {
            year++;
            month -= 12;
        }
        if(Bill.W == 0){
            if(month == 3 && day >=25 && day <= 31){
                Bill.T = 1;
            }
            else if(month == 10 && day >=25 && day <= 31){
                Bill.T = 2;
            }
            else Bill.T = 0;
        }
        else Bill.T = 0;
    }
}
